package piece1.chapter5;

public class Problem5_05 {

    /**
     * @param args
     */
    public static void main(String[] args) {
	// TODO 自动生成的方法存根
	int a[] = new int[100];
	int num = 0;
	boolean count = true;
	for (int i = 0; i < a.length; i++) {
	    num = (int) (Math.random() * 90 + 1);

	    for (int j = 0; j < a.length; j++) {
		if (num == a[j]) {
		    count = false;
		    break;
		}
	    }
	    if (count) {
		a[i] = num;
		System.out.println(a[i]);
	    } else {
		i--;
	    }
	    count = true;

	}
    }
}
